import React from 'react';
import {Layout} from "antd";
import {useSelectorAuth} from "@/store/slices/auth";

function IndexContent() {
    const {info} = useSelectorAuth();
    return (
        <Layout.Content style={{ margin: '5px' }}>

            <div className="site-layout-background" style={{ padding: 24, height:"100%" }}>
                <p>用户名：{info.name}</p>
                <img src={info.avatar} alt=""/>
            </div>
        </Layout.Content>
    );
}

export default IndexContent;